Tweak OSM node to output 7 decimal places.
authorrobertl <robertl>
Mon, 26 Jul 2010 15:02:33 +0000 (15:02 +0000)
committerrobertl <robertl>
Mon, 26 Jul 2010 15:02:33 +0000 (15:02 +0000)
osm.c

diff --git a/osm.c b/osm.c
index c8cd08c65169bf4435664ac7c75ba4ddc44105d0..f968719986e270161f7dd326afe6d34d8cc5f1e5 100644 (file)
--- a/osm.c
+++ b/osm.c
@@ -795,7 +795,7 @@ osm_waypt_disp(const waypoint *wpt)
                *id = --node_id;
                ((waypoint *)(wpt))->extra_data = id;
        
-               gbfprintf(fout, "  <node id='%d' visible='true' lat='%f' lon='%f'", *id, wpt->latitude, wpt->longitude);
+               gbfprintf(fout, "  <node id='%d' visible='true' lat='%0.7f' lon='%0.7f'", *id, wpt->latitude, wpt->longitude);
                if (wpt->creation_time) {
                        char time_string[64];
                        xml_fill_in_time(time_string, wpt->creation_time, wpt->microseconds, XML_LONG_TIME);